﻿using System.Text;
using JKF.BusinessLayer.BLL;
using JKF.Entities.Model;
using JKF.Substructure;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace JKF.Web.Sales.Consume
{
    public partial class Sales_Consume_View : PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            MODULE_NAME_EN = "SALES_CONSUME";
        }

        private static StringBuilder strBuilder = new StringBuilder();

        /// <summary>
        /// 当前登陆用户管理的店铺
        /// </summary>
        public string Shops
        {
            get
            {
                var bllshop = new bllSHOP();
                var shops = bllshop.GetListArray(string.Format(" shop_code in(select shop_code from sys_user_shop where user_key='{0}')", bllSYS_USER.CurrentUser.USER_KEY));
                return (from SHOPinfo s in shops
                        select new
                        {
                            SHOP_NAME = s.SHOP_NAME,
                            SHOP_CODE = s.SHOP_CODE
                        }).ToList().ToJson();
            }
        }
    }
}